﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace IMIS_ERP.Web.Pub_Useful
{
    public class CheckRight
    {
        public static void checkRight(string userType)
        {
            if (userType.IndexOf(HttpContext.Current.Session["UType"].ToString())==-1)
            {
                HttpContext.Current.Response.Redirect("../Quit.aspx?cr=no");
            }
        }
    }
}